package ch.thomasmueller.saltyfiles.ui.command;

import java.awt.event.ActionEvent;

import ch.thomasmueller.saltyfiles.data.AlgoritmesEnum.Algoritmes;
import ch.thomasmueller.saltyfiles.data.DataModel;
import ch.thomasmueller.saltyfiles.ui.Controller;

public class ChooseEncryption implements Command{
	
	private DataModel datamodel = DataModel.getInstance();
	private Controller controller = Controller.getInstance();
	/**
	 * No log implemented
	 */

	public void doCommand( ActionEvent event) {
		datamodel.setAlgorithm( (Algoritmes) controller.getJComboBox().getSelectedItem() );
	}

}
